#ifndef TEST2_H_INCLUDED
#define TEST2_H_INCLUDED

#include "GameState.h"
#include <TGUI/TGUI.hpp>
#include "GameEngine.h"
#include <iostream>
#include <sstream>
#include "Tilemap.h"
#include "TextEntity.h"
#include "IntroState.h"


class Test2 : public GameState
{
public:

	void Init(sf::RenderWindow& window);
	void Cleanup();

	void Pause();
	void Resume();

	void Events(GameEngine* game, sf::RenderWindow& window);
	void Update(GameEngine* game, sf::RenderWindow& window);
	void Render(GameEngine* game, sf::RenderWindow& window);

	static Test2* Instance() {
		return &m_Test2;
	}

protected:
	//Test2() { }

private:

	static Test2 m_Test2;

    sf::View view;

    sf::Event event;

    tgui::Gui gui;

    //create and configure map
    sf::RectangleShape rectangle1;
    TextEntity text1;
    sf::RectangleShape r2;
    float r1Rotation = 0;
    int x_view = 100;
    int y_view = 100;

    tgui::EditBox::Ptr c3;

    sf::Sprite sprite;
    sf::Texture spTexture;
    sf::Clock clock;
    sf::Time time1;


};

#endif // TEST2_H_INCLUDED
